package com.itheima.多线程.练习;

public class Demo3 {
    public static void main(String[] args) {
        MyRrrunnable mr=new MyRrrunnable();
        Thread th1=new Thread(mr,"线程一");
        Thread th2=new Thread(mr,"线程二");
        Thread th3=new Thread(mr,"线程三");
        th1.start();
        th2.start();
        th3.start();
    }
}


class MyRrrunnable implements  Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName()+"....."+i);
        }
    }
}